<?php

namespace yi\base;

use Yi;

class Component extends BaseObject
{

    public function __construct($config = [])
    {
        if (!empty($config)) {
            Yi::configure($this, $config);
        }
        $this->init();
    }

    public function init()
    {

    }
}